<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<h1 th:text="${string}"></h1>
<h2 th:text="${appName}"></h2>
<h2 th:text="${uploadDir}"></h2>
<h2 th:text="${webPath}"></h2>
<h2 th:text="${myConfig.dir}"></h2>
<h2 th:text="${myConfig.webPath}"></h2>

爱好:
    <span th:each="l : ${myConfig.likes}">
        <input th:name="${l}" type="checkbox">
        <label th:text="${l}"></label>
    </span><br>

籍贯:
    <select>
        <option th:text="${myConfig.citys.get('hengyang')}"></option>
        <option th:text="${myConfig.citys.get('zhuzhou')}"></option>
        <option th:text="${myConfig.citys.get('changsha')}"></option>
    </select>
<table>
    <tr>
        <th>编号</th>
        <th>名称</th>
    </tr>
    <tr th:each="car : ${cars}">
        <td th:text="${car.id}"></td>
        <td th:text="${car.model}"></td>
    </tr>
</table>

</body>
</html>